package com.github.caijh.mall.common.enums;

import com.github.caijh.framework.core.enums.IndexEnum;

public enum ProductTypeEnum implements IndexEnum {
    NORMAL(0, "默认"),
    SECKILL(1, "秒杀"),
    BARGAIN(2, "砍价"),
    PINGTUAN(3, "拼团");

    private final int index;

    private final String name;

    ProductTypeEnum(int index, String name) {
        this.index = index;
        this.name = name;
    }

    @Override
    public int getIndex() {
        return this.index;
    }

    public String getName() {
        return name;
    }
}
